/**
* C Rush OS
* 60-330 Final Assignment
* Submitted by:
*	Joseph Greaves
*	Benjamin Iannetta
*	Paul Wolak
*	
* Resource: 
*	defines a resource that is utilized by a process 
*	in the simulation
*/

public class Resource{
	//instance Variables
	private boolean available;
	private String name;
	private int execTime;
	private String[] buffer;
	
	//Constructor
	public Resource(String name, int execTime, int bufferSize){
		available = false;
		this.name = name;
		this.execTime = execTime;
		buffer = new String[bufferSize];
	}
	
	//Accessors
	public boolean getAvailable(){
		return available;
	}
	
	public void setAvailable(boolean available){
		this.available = available;
	}
	
	public String getName(){
		return name;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public int getTime() {
		return execTime;
	}
}
